package com.hmsproject.common;

import com.hmsproject.datastructures.User;
import com.hmsproject.datastructures.transactions.Transaction;
import com.hmsproject.livedata.LiveDealData;

public class HotellieThread extends Thread {
	
	private Transaction newTransacion;
	private LiveDealData freshLiveDealData;
	private User user;
	
	private HotellieThread(){}
	
	public HotellieThread(Transaction newTransacion,LiveDealData freshLiveDealData, User user){
		this.newTransacion = newTransacion;
		this.freshLiveDealData = freshLiveDealData;
		this.user = user;
	}
	
	@Override
	public void run(){
		MailUtil.sendHotellieMails(newTransacion, freshLiveDealData, user);
		MailUtil.sendNotificationMails(newTransacion, freshLiveDealData, user);
	}

}
